<?php 
$post_data=array('username'=>'jack','password'=>'jack123','submit'=>'',);
$url='http://localhost/LoginUI/server.php'; 
     $ch = curl_init();  
     curl_setopt($ch, CURLOPT_POST, 1);  
     curl_setopt($ch, CURLOPT_URL,$url);  
	 curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1 );
	 curl_setopt ( $ch, CURLOPT_HEADER, 0 );
     curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);   
     echo curl_exec($ch);
	curl_close($ch); 
?>